﻿namespace Skymate.Commands
{
    using Skymate.Lyjt.Core;

    /// <summary>
    /// 信号机工作状态主动上传命令
    /// </summary>
    public class WorkStateCommand : BaseLightCommand
    {
        public WorkStateCommand()
            : base(ProtocolConst.OptionType.ActiveReporting, ProtocolConst.ObjectType.WorkState)
        {
        }

        public override void ExecuteCommand(LightAppSession session, SemaphoreRequestInfo requestInfo)
        {
            var message = "主动上报信号状态";
            this.ShowLog(session.RemoteEndPoint.ToString(), message);

            // var buffer = requestInfo.Body;
            
            // 当前运行相位
            // 当前方案
            // 控制方式
        }
    }
}